package top.xcxdl.rural.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ding
 * @since 2022-01-27
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@EqualsAndHashCode(callSuper = false)
public class BackAuthGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    @TableId(value = "g_id", type = IdType.AUTO)
    private Integer groupId;

    /**
     * 角色名称
     */
    private String title;

    /**
     * 角色描述
     */
    @TableField(value = "`describe`")
    private String describe;

    /**
     * 角色状态：-1删除，0禁用，1正常
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 身份：ROLE_ADMIN / ROLE_USER
     */
    private String role;

    /**
     * 角色权限
     */
    private String rules;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改时间
     */
    private Long updateTime;


}
